<?php
/**
 * @revision      $Id: router.php 7 2011-08-20 10:33:23Z agbiggora@gmail.com $
 * @created       Apr 22, 2011
 * @category      MongoWeb
 * @package       AG CMS
 * @subpackage    Router
 * @version       1.0.0
 * @copyright     Copyright Alexey Gordeyev IK (c) 2009-2011 - All rights reserved.
 * @license       GNU Lesser GPL
 * @author        Alexey Gordeyev IK <aleksej@gordejev.lv>
 * @link          http://www.gordejev.lv/
 * @link          http://www.agjoomla.com/
 * @link          http://code.google.com/p/ag-cms/
 */

// No direct access
defined('_AGEXEC') or die;

Class Router
{
   private $registry;

   private $path;

   private $args = array();


   function __construct($registry)
   {
      $this->registry = $registry;
   }
    
   function setPath($path) {

      $path = trim($path, '/\\');
      $path .= DS;

      if (is_dir($path) == false) 
      {
         throw new Exception ('Invalid path: `' . $path . '`');
      }
     $this->path = $path;
   }
    
}

?>